Skip to main content

codepointProperty

Type

function

Summary

Retrieves a Unicode Character Database (UCD )character property of a Unicode codepoint.

Syntax

codepointProperty(<unicodeCodepoint>, <propertyName>)

Description

Use the codepointProperty function to retrieve a UCD property of a Unicode codepoint.

The Unicode standard and the associated Unicode Character Database (UCD) define a series of properties for each codepoint in the Unicode standard. A number of these properties are used internally by the engine during text processing but it is also possible to query these properties directly using this function.

There are many properties available; please see the LiveCode 6.3.0 of the Unicode standard, Chapter 4 and Section 5 of Unicode Technical Report (TR)#44 for details on the names and values of properties. Property names may be specified with either spaces or underscores and are not case-sensitive.

note

This function is not intended for general-purpose use; please use functions such as toUpper or the equals operators instead.

Parameters

NameTypeDescription

unicodeCodepoint

string

A Unicode codepoint, or an expression which evaulates to a Unicode codepoint.

propertyName

enum

The name of a supported UCD codepoint property. Examples of supported properties, for a full list see http://www.unicode.org/versions/Unicode6.2.0/ch04.pdf

Examples

get codepointProperty("A","Script") -- returns "Latin"
put codePointProperty(codepoint 1 of tString, "Name")

function: nativeCharToNum, numToNativeChar, toUpper, numToCodepoint

keyword: codepoint, codepoints

operator: equals

Compatibility and Support

Introduced

LiveCode 7.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?